{% extends "layouts/layout01.html" %}

{% load markup i18n %}

{% block content %}
    <form action="" method="POST" class="form-horizontal" novalidate="novalidate">{% csrf_token %}
        {% if form.errors %}
            {% for error in form.errors %}{{ errors }} {% endfor %}
        {% endif %}
        <fieldset>
            {% include "_form.html" with form=form %}
            <div class="form-actions">
                <button type="submit" class="btn btn-primary btn-large"><i class="icon-star"></i>
                    {% if update_page %}
                        {% trans "Изменить" %}
                    {% else %}
                        {% trans "Создать" %}
                    {% endif %}
                </button>
                <a href="{% url datapagesview %}" class="btn btn-large">{% trans "Отмена" %}</a>
            </div>
        </fieldset>
    </form>
{% endblock %}
